﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace QuickOpen.Framework
{
    /// <summary>
    /// Interfacing describing a repository of filterable items.
    /// </summary>
    public interface IItemRepository
    {
        /// <summary>
        /// All of the filterable items in the item repository
        /// </summary>
        IFilterableItem[] Items { get; }
        /// <summary>
        /// Queries the repository for items that match the given string query
        /// </summary>
        /// <param name="query">The string query</param>
        /// <returns>An array of the matching filterable items</returns>
        IFilterableItem[] Query(string query);
    }
}
